package com.sky.service;

import com.sky.dto.OrdersPageQueryDTO;
import com.sky.dto.OrdersPaymentDTO;
import com.sky.dto.OrdersSubmitDTO;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {
    OrderSubmitVO OrderSubmit(OrdersSubmitDTO ordersSubmitDTO);
    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    /**
     *
     * @param id
     * @return
     */
    OrderVO OrderByid(Long id);

    /**
     *
     * @param ordersPageQueryDTO
     * @return
     */
    PageResult Page(OrdersPageQueryDTO ordersPageQueryDTO);

    /**
     *
     * @param id
     */
    void OrderCancel(Long id);

    /**
     * 再来一单
     * @param id
     */
    void repetition(Long id);

    OrderStatisticsVO Statistics();

    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    void OrderConfirm(Orders orders);

    void OrderRehection(Orders orders);

    void OrderDelivery(Long id);

    void OrderComplete(Long aLong);

    void OrderAdminCancel(Orders orders);
}
